/*
 * Group: Jan Stalhut, Dennis Neumann, Willi Pfeifer , Mirco Timmermann
 */

package de.hsb.ai.agent.jcau;

import game.Move;

import jade.core.AID;

import java.util.HashMap;
import java.util.List;
import java.util.Random;

import de.hsb.ai.agent.AbstractFugitive;
import de.hsb.ai.domain.GameOver;
import de.hsb.ai.domain.GameStarted;
import de.hsb.ai.domain.MoveEvent;

@SuppressWarnings("serial")
public class StupidMisterXAgent extends AbstractFugitive {

	private Random random = new Random(42L);
	
	public StupidMisterXAgent() {
		super("StupidX");
	}
	
	@Override
	protected void setup() {
		super.setup();
	}

	@Override
	protected void handleGameStarted(GameStarted g) {
		super.handleGameStarted(g);
		
		List<AID> players = g.getInfo().getPlayers();
	
	}

	@Override
	protected void handleGameOver(GameOver g) {
		super.handleGameOver(g);
	
	}

	@Override
	protected void handleMove(MoveEvent m) {
		super.handleMove(m);


	}

	@Override
	protected Move getMove(List<Move> options) {
		
		return options.get(Math.abs(random.nextInt()) % options.size());
	}
	

	

}
